package com.wudl.jwt.auth.client.configuration;

import com.wudl.jwt.auth.client.properties.AuthClientProperties;
import com.wudl.jwt.auth.client.utils.JwtTokenClientUtils;
import org.springframework.boot.context.properties.EnableConfigurationProperties;
import org.springframework.context.annotation.Bean;

/**
 * @author ：wudl
 * @date ：Created in 2022-02-24 22:37
 * @description：客户端认证配置
 * @modified By：
 * @version: 1.0
 */
@EnableConfigurationProperties(value = {
        AuthClientProperties.class,
})
public class AuthClientConfiguration {
    @Bean
    public JwtTokenClientUtils getJwtTokenClientUtils(AuthClientProperties authClientProperties) {
        return new JwtTokenClientUtils(authClientProperties);
    }
}
